if (AMReX_SPACEDIM EQUAL 3)
    add_executable(spherical_collapse spherical_collapse.cpp ${QuokkaObjSources})
    if(AMReX_GPU_BACKEND MATCHES "CUDA")
        setup_target_for_cuda_compilation(spherical_collapse)
    endif()

    add_test(NAME SphericalCollapse COMMAND spherical_collapse ../inputs/SphericalCollapse.in ${QuokkaTestParams} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
endif()
